import 'package:flutter/material.dart';
import 'package:yuan_hang_app/base/base_view.dart';

import 'package:yuan_hang_app/widget/w_toast.dart';

abstract class BaseState<T extends StatefulWidget> extends State<T>
    with BaseView {
  @override
  Widget build(BuildContext context) {
    return buildState(context);
  }

  @override
  void hideLoading() {
    Toast.dismissLoading();
  }

  @override
  void showLoading() {
    Toast.showLoading();
  }

  @override
  void showMsg(String msg) {
    Toast.toast(msg);
  }

}
